export interface Room {
  id: string;
  title: string | null;
  coverUrl: string | null;
  streamerName: string | null;
  streamerAvatar: string | null;
  streamerDisplayId: string | null;
  streamerShortId: string | null;
  followCount: number;
  type?: string | null;
  weight?: number | null;
  liveStatus?: number | undefined; // 动态获取的直播状态：2-直播中，4-未开始，0-已结束，undefined-未知
  refreshing?: boolean | undefined; // 是否正在刷新状态
  // 新增：由后端 /api/rooms 返回的录制状态字段
  isVideoRecording?: boolean;
  isDanmuRecording?: boolean;
  createdAt: string; 
  updatedAt: string;
  sessions: any[];
}

export interface ApiResponse<T> {
  success: boolean;
  data: T;
  pagination: {
    page: number;
    limit: number;
    total: number;
    totalPages: number;
  };
}

export interface RoomsResponse {
  rooms: Room[];
  pagination: {
    page: number;
    limit: number;
    total: number;
    totalPages: number;
  };
}